<script setup lang="ts">
import GoodTitle from '../../../components/GoodTitle.vue'

defineProps<{
  goodName: string,
  goodInfo: string,
  fontColor: string,
  imgSrc: string,
  backgroundColor: string
}>()
</script>

<template>
  <div class="homecontainer _homecontainer" :style="{ backgroundColor: backgroundColor }">
     <GoodTitle :good-name="goodName" :good-info="goodInfo" :font-color="fontColor"  />
     <img :src="imgSrc" alt="iphonese">
  </div>
</template>

<style scoped lang="less">
@media only screen and (min-width: 800px){
  .homecontainer{
      position: relative;
      width: 100%;
      display: flex;
      flex-direction:column-reverse;
      justify-content: center;
      align-items: center;
      background-color: rgb(245, 245, 247);
      min-height: 500px;
      font-size: 1.133vw;
      // padding-top:10%;
      margin-bottom: 20px;
      img{
          width:100%;
          height: auto;
      }
  }
}
@media only screen and (max-width: 799px){
  ._homecontainer{
      position: relative;
      width: 100%;
      display: flex;
      flex-direction:column-reverse;
      justify-content: center;
      align-items: center;
      background-color: rgb(245, 245, 247);
      min-height: 500px;
      font-size: 6px;
      // padding-top:10%;
      margin-bottom: 20px;
      img{
          width:100%;
          height: auto;
      }
  }
}
</style>
